package org.example.threadpooltaskexecutor;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
//spring自带的线程池
@SpringBootApplication
@EnableAsync // 启用异步方法支持
public class ThreadPoolTaskExecutorApplication {

    public static void main(String[] args) {
//        ThreadPoolTaskExecuto
        SpringApplication.run(ThreadPoolTaskExecutorApplication.class, args);
    }

}
